import { pubStyles } from '../constant';
import { cloneDeep } from 'lodash';
export const WidgetImage = {
    type: 'widget-image',
    label: '图片',
    icon: 'icon-icon-background',
    options: {
        setups: [
            {
                type: 'el-input',
                label: '组件名称',
                name: 'componentName',
                required: false,
                placeholder: '',
                value: '图片'
            },
            {
                type: 'el-upload',
                label: '上传图片',
                name: 'componentContent',
                required: false,
                placeholder: '',
                value: 'https://p.qqan.com/up/2022-12/16709987918137922.jpg'
            }
        ],
        styles: [...cloneDeep(pubStyles)]
        // events: [],
        // data: [
        //     {
        //         name: 'mockData',
        //         value: 'https://p.qqan.com/up/2022-12/16709987918137922.jpg'
        //     }
        // ]
    }
};
